choose random file from directory

39

choose random file from directory -

import os, random
random.choice(os.listdir("C:\\")) #change dir name to whatever

Comments

Submit
0 Comments